package com.cy.service.impl;

import com.cy.dao.AccountDao;
import com.cy.dao.impl.AccountDaoImpl;
import com.cy.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 * @Author : 残影
 * @Date: 2020-09-12 11:40
 */
@Component("accountService")
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;

    private int i = 1;

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
        System.out.println(i++);
    }
}
